#define COLLECT_SENSOR_TIME_SPAN 60
#define COLLECT_SENSOR_TIME_RANDOM_SPAN 20
#define CONSENSUS_SPAN 60
#define CONSENSUS_RANDOM_SPAN 30
#define REQ_SENDING_SPAN 4
#define REQ_SENDING_START 60

#define MSG_MOD 127
#define MSG_WINDOW 40
#define SENDING_BUFFER_LEN 128

#define DOWN_PACKET_LEN 4
#define UP_PACKET_LEN 6
#define BROADCAST_PACKET_LEN 5

#define SENDING_ACTION_REQ 0
#define SENDING_ACTION_BROADCAST 1
#define SENDING_ACTION_CONSENSUS 2

